* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
}

.header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    width: 1200px;
    margin: 0 auto;
    padding: 15px 0;
    display: flex;
    align-items: center;
}

.logo {
    color: #ff0036;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    margin-right: 50px;
    font-family: "华文行楷", cursive;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    width: 400px;
    height: 36px;
    padding: 0 15px;
    border: 2px solid #ff0036;
    border-right: none;
    font-size: 14px;
}

.search-btn {
    width: 90px;
    height: 36px;
    background-color: #ff0036;
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.container {
    width: 1200px;
    margin: 20px auto;
    background-color: white;
    border-radius: 4px;
    padding: 20px;
}

.cart-header {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.cart-header h2 {
    font-size: 18px;
    color: #333;
    margin-right: 15px;
}

.cart-count {
    color: #999;
    font-size: 14px;
}

.cart-table-header {
    display: flex;
    align-items: center;
    padding: 15px 0;
    background-color: #f5f5f5;
    margin: 20px 0;
    font-size: 14px;
    color: #333;
}

.col-checkbox {
    width: 50px;
    padding-left: 20px;
}

.col-goods {
    flex: 1;
    padding-left: 20px;
}

.col-price {
    width: 180px;
    text-align: center;
    padding-right: 0;
}

.col-quantity {
    width: 150px;
    text-align: center;
}

.col-total {
    width: 180px;
    text-align: center;
    padding-right: 0;
}

.col-action {
    width: 80px;
    text-align: center;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e8e8e8;
}

.item-checkbox {
    width: 50px;
    padding-left: 20px;
}

.item-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.item-info {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.item-info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 10px;
}

.item-details {
    flex: 1;
}

.item-title {
    font-size: 14px;
    color: #333;
}

.item-spec {
    font-size: 12px;
    color: #999;
}

.item-price {
    width: 180px;
    text-align: center;
    padding-right: 0;
    color: #ff0036;
}

.item-quantity {
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #e8e8e8;
    background-color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    padding: 0;
}

.quantity-input {
    width: 40px;
    height: 24px;
    text-align: center;
    border: 1px solid #e8e8e8;
    border-left: none;
    border-right: none;
    font-size: 12px;
    padding: 0;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.item-action {
    width: 80px;
    text-align: center;
}

.delete-btn {
    display: inline-block;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    color: #ff0036;
    border-color: #ff0036;
    background-color: #fff5f5;
}

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-top: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.footer-left .checkbox-wrapper {
    display: flex;
    align-items: center;
}

.footer-left input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin-right: 5px;
}

.footer-left span {
    font-size: 14px;
    color: #333;
}

.footer-right {
    display: flex;
    align-items: center;
}

.total-info {
    margin-right: 20px;
    font-size: 14px;
}

.total-info em {
    color: #ff0036;
    font-style: normal;
    font-weight: bold;
}

.checkout-btn {
    width: 120px;
    height: 40px;
    background-color: #ff0036;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.checkout-btn:hover {
    background-color: #ff1a1a;
}

.item-total {
    width: 180px;
    text-align: center;
    padding-right: 0;
    color: #ff0036;
}